function setMyDate(){
    if(document.getElementById("go_personal_page_link") != null || document.getElementById("date") != null) {
        var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var minutes = currentTime.getMinutes()
        var hours = currentTime.getHours()
    
        if(day < 10) {
            day = "_0" + day;
        } else {
            day = "_" + day;
        }
    
        if(month < 10) {
            month = "_0" + month;
        } else {
            month = "_" + month;
        }
 
        var date = "" + year + month + day
        if(document.getElementById("go_personal_page_link") != null)
            document.getElementById("go_personal_page_link").setAttribute('href',document.getElementById("go_personal_page_link").getAttribute('href') + "?date=" + date)
        if(document.getElementById("date").value == "")
            document.getElementById("date").value = date
    }
}

function linkMyDate(called) {
    var currentTime = new Date()
    var month = currentTime.getMonth() + 1
    var day = currentTime.getDate()
    var year = currentTime.getFullYear()
    var minutes = currentTime.getMinutes()
    var hours = currentTime.getHours()

    if(day < 10) {
        day = "_0" + day;
    } else {
        day = "_" + day;
    }

    if(month < 10) {
        month = "_0" + month;
    } else {
        month = "_" + month;
    }
    var date = "" + year + month + day
    called.href = called.href + "&date=" + date
}